package com.system.server;

import com.system.pojo.*;
import exception.*;

import java.util.List;

/**
 * @Author: E-mail:
 * @Version: 创建时间：2019年04月11日12:05
 * @Description: <描述>
 */
public interface TeacherService {

    public List<Course> findCourseById(String username);

    List<SelectedCourseDTO> findSelectedCourse(Integer id);

    SelectedCourseDTO findSelectedCourseStu(Integer courseid, Integer studentid);

    void modifyMark(CourseVO courseVO);

    List<Teacher> findTeacherNo();

    List<Teacher> findAll();

    List<Teacher> findTeacherByName(String findByName);

    Boolean checkStudentID(Integer userID);

    void addTeacher(Teacher teacher);

    TeacherVO findTeacherById(Integer userID);

    void modifyTeacher(TeacherVO teacherVO);

    void removeTeacher(Integer userID) throws DeleteTeacherError;

    void modifyPassword(String userName, String newPassword, String againPassword) throws passwordDiffError, modifyPasswordError, userLoginNotFound, passwordNotEmptyError;
}
